{# the block declaration is needed because we call this using 'render_block_to_string' #}


{% block inner_facet_values %}    
	
		<ul>
  	
				{# <div class="valueslist"> #}
				{% for facetvalue in facetvalues %}


					{% ifequal facetvalue.name "99morebutton99" %}

				  		<li><a id="{{facetgroup.uniquename}}__{{facet.name}}" ><span style="font-style:italic;">. . . more . . .</span></a>    
						</li>

					{% else %}

						<li>
							
							{# here the link is given only if the results N is > TOTITEMS! #}
							
							{% ifnotequal facetvalue.howmany  totitems  %}
								<a href="?filter={{facetvalue.id}}&amp;resulttype={{result_typeObj.uniquename}}{{newurl_stub}}"  id="{{facetgroup.uniquename}}_{{facetvalue.id}}" class="{{facet.name}}" title="Click to apply this filter."> 
								{{facetvalue.displayname|capfirst|default:"---"}} ({{facetvalue.howmany|default:"0"}})							
								</a>							
							{% else %}	
							
								<a href="#" class="nolink" title="All possible results already displayed.">{{facetvalue.displayname|capfirst|default:"---"}} ({{facetvalue.howmany|default:"0"}})</a>							

							
							{% endifnotequal %}
							
							

							
							
						</li>

					{% endifequal %}


				{% endfor %}


		</ul>
				
{% endblock %}